Skip to content

fix(yuanbao): bound ws.close() so an idle server can't stall shutdown ~5s - #40607

Merged
teknium1 merged 1 commit into
mainfrom
salvage/40421-yuanbao-shutdown
Jun 8, 2026
Merged

fix(yuanbao): bound ws.close() so an idle server can't stall shutdown ~5s#40607
teknium1 merged 1 commit into
mainfrom
salvage/40421-yuanbao-shutdown

Conversation

@teknium1

@teknium1 teknium1 commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Summary

The yuanbao adapter's ws.close() could stall shutdown ~5s on an idle/unresponsive server (the close handshake never completes under close_timeout=5). Bounds it with asyncio.wait_for(..., 1s).

Validation

tests/test_yuanbao_shutdown.py 3 passed.

… ~5s

Salvaged from #40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

🔎 Lint report: salvage/40421-yuanbao-shutdown vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 9963 on HEAD, 9962 on base (🆕 +1)

🆕 New issues (1):

Rule Count
unresolved-import 1
First entries
tests/test_yuanbao_shutdown.py:24: [unresolved-import] unresolved-import: Cannot resolve imported module `pytest`

✅ Fixed issues: none

Unchanged: 5167 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@alt-glitch alt-glitch added type/perf Performance improvement or optimization P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery labels Jun 6, 2026
@teknium1
teknium1 merged commit cb83149 into main Jun 8, 2026
23 checks passed
@teknium1
teknium1 deleted the salvage/40421-yuanbao-shutdown branch June 8, 2026 00:49
changman pushed a commit to changman/hermes-agent that referenced this pull request Jun 10, 2026
… ~5s (NousResearch#40607)

Salvaged from NousResearch#40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
alt-glitch pushed a commit that referenced this pull request Jun 14, 2026
… ~5s (#40607)

Salvaged from #40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
davidgut1982 pushed a commit to davidgut1982/hermes-agent that referenced this pull request Jun 17, 2026
… ~5s (NousResearch#40607)

Salvaged from NousResearch#40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
T02200059 pushed a commit to T02200059/hermes-agent that referenced this pull request Jun 18, 2026
… ~5s (NousResearch#40607)

Salvaged from NousResearch#40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
… ~5s (NousResearch#40607)

Salvaged from NousResearch#40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
santhreal pushed a commit to santhreal/hermes-agent that referenced this pull request Jul 13, 2026
… ~5s (NousResearch#40607)

Salvaged from NousResearch#40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
donbowman pushed a commit to donbowman/hermes-agent that referenced this pull request Jul 13, 2026
… ~5s (NousResearch#40607)

Salvaged from NousResearch#40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
… ~5s (NousResearch#40607)

Salvaged from NousResearch#40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
leewenjie pushed a commit to leewenjie/hermes-agent that referenced this pull request Aug 7, 2026
… ~5s (NousResearch#40607)

Salvaged from NousResearch#40421; re-verified on main, tightened, tested.

Co-authored-by: maxmilian <maxmilian@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have type/perf Performance improvement or optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants